﻿using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEditor;
using UnityEngine;
using XLua;

[LuaCallCSharp]
public class DotweenTest : MonoBehaviour
{

    LuaEnv luaenv = null;

    // Use this for initialization
    void Start()
    {
        //transform.DOMove(Vector3.zero, 3).OnComplete();
        luaenv = new LuaEnv();
        luaenv.DoString("require 'dotweentest' ");
    }

    // Update is called once per frame
    void Update()
    {
        if (luaenv != null)
        {
            luaenv.Tick();
        }
    }

    void OnDestroy()
    {
        if (luaenv != null) luaenv.Dispose();
    }
}
